package org.dromara.iot.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.iot.domain.IotAnnualPlan;

import java.util.Date;

/**
 * 电梯年检计划业务对象 iot_annual_plan
 *
 * @author lsl
 * @date 2024-06-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IotAnnualPlan.class, reverseConvertGenerate = false)
public class IotAnnualPlanBo extends BaseEntity {

    /**
     * 计划ID
     */
    @NotNull(message = "计划ID不能为空", groups = {EditGroup.class})
    private Long planId;

    /**
     * 关联电梯ID
     */
    @NotNull(message = "关联电梯ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long elevatorId;

    /**
     * 电梯名称
     */
    @NotBlank(message = "电梯名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String elevatorName;

    /**
     * 注册码
     */
    @NotBlank(message = "注册码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String registeredCode;

    /**
     * 安装日期
     */
    @NotBlank(message = "安装日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date installationDate;

    /**
     * 年检日期
     */
    @NotNull(message = "年检日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date annualDate;

    /**
     * 限速器年检日期
     */
    @NotBlank(message = "限速器年检日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date speedGovernor;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;


}
